<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>OCILIB (C and C++ Driver for Oracle): ocilib::Subscription Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">OCILIB (C and C++ Driver for Oracle)
   &#160;<span id="projectnumber">4.2.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>About</span></a></li>
      <li><a href="modules.html"><span>Documentation</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classocilib_1_1_subscription.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="classocilib_1_1_subscription-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ocilib::Subscription Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> to database or objects changes.  
 <a href="classocilib_1_1_subscription.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ocilib_8hpp_source.html">ocilib.hpp</a>&gt;</code></p>

<p>Inherits <a class="el" href="classocilib_1_1_handle_holder.html">ocilib::HandleHolder&lt; OCI_Subscription * &gt;</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa2667ca0384af70f0c17d6bdc28ed082"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082">ChangeTypesValues</a> { <a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082aecdfb6fffabfbdf15eae6d80ad04a0d2">ObjectChanges</a> = OCI_CNT_OBJECTS, 
<a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082a0c4a4ff11ff9e8dd7a06167e42c73ef8">RowChanges</a> = OCI_CNT_ROWS, 
<a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082a7e4d7d4f031f8fc53b539b6c63ef8a2d">DatabaseChanges</a> = OCI_CNT_DATABASES, 
<a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082a5a55eb308dfae1200c7d22df8957aa3a">AllChanges</a> = OCI_CNT_ALL
 }</td></tr>
<tr class="memdesc:aa2667ca0384af70f0c17d6bdc28ed082"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> changes flags values.  <a href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082">More...</a><br /></td></tr>
<tr class="separator:aa2667ca0384af70f0c17d6bdc28ed082"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa557f2ff8b04b1c465f4fb2c901fe8e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa557f2ff8b04b1c465f4fb2c901fe8e7"></a>
typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#aa557f2ff8b04b1c465f4fb2c901fe8e7">NotifyHandlerProc</a>) (<a class="el" href="classocilib_1_1_event.html">Event</a> &amp;evt)</td></tr>
<tr class="memdesc:aa557f2ff8b04b1c465f4fb2c901fe8e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">User callback for subscriptions event notifications. <br /></td></tr>
<tr class="separator:aa557f2ff8b04b1c465f4fb2c901fe8e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eeec89f2f59ad49a7db7501a41b96f9"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classocilib_1_1_flags.html">Flags</a>&lt; <a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082">ChangeTypesValues</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a9eeec89f2f59ad49a7db7501a41b96f9">ChangeTypes</a></td></tr>
<tr class="memdesc:a9eeec89f2f59ad49a7db7501a41b96f9"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> changes flags.  <a href="#a9eeec89f2f59ad49a7db7501a41b96f9">More...</a><br /></td></tr>
<tr class="separator:a9eeec89f2f59ad49a7db7501a41b96f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a40b835ebe39948c113f32a51720e82ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40b835ebe39948c113f32a51720e82ea"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a40b835ebe39948c113f32a51720e82ea">Subscription</a> ()</td></tr>
<tr class="memdesc:a40b835ebe39948c113f32a51720e82ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a40b835ebe39948c113f32a51720e82ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44f8bca8a9479fe38dde565890850389"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a44f8bca8a9479fe38dde565890850389">Register</a> (const <a class="el" href="classocilib_1_1_connection.html">Connection</a> &amp;connection, const <a class="el" href="namespaceocilib.html#a01daa07e307e429b66fb80f442362237">ostring</a> &amp;name, <a class="el" href="classocilib_1_1_subscription.html#a9eeec89f2f59ad49a7db7501a41b96f9">ChangeTypes</a> changeTypes, <a class="el" href="classocilib_1_1_subscription.html#aa557f2ff8b04b1c465f4fb2c901fe8e7">NotifyHandlerProc</a> handler, unsigned int port=0, unsigned int timeout=0)</td></tr>
<tr class="memdesc:a44f8bca8a9479fe38dde565890850389"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a notification against the given database.  <a href="#a44f8bca8a9479fe38dde565890850389">More...</a><br /></td></tr>
<tr class="separator:a44f8bca8a9479fe38dde565890850389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f6e12327beee0faef2d15e0244d090a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a1f6e12327beee0faef2d15e0244d090a">Unregister</a> ()</td></tr>
<tr class="memdesc:a1f6e12327beee0faef2d15e0244d090a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unregister a previously registered notification.  <a href="#a1f6e12327beee0faef2d15e0244d090a">More...</a><br /></td></tr>
<tr class="separator:a1f6e12327beee0faef2d15e0244d090a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bbced3f0c3111880bff1d9f8b607a38"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0bbced3f0c3111880bff1d9f8b607a38"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a0bbced3f0c3111880bff1d9f8b607a38">Watch</a> (const <a class="el" href="namespaceocilib.html#a01daa07e307e429b66fb80f442362237">ostring</a> &amp;sql)</td></tr>
<tr class="memdesc:a0bbced3f0c3111880bff1d9f8b607a38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a SQL query to monitor. <br /></td></tr>
<tr class="separator:a0bbced3f0c3111880bff1d9f8b607a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abae63e20c73fdf494c6538bb78559e56"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abae63e20c73fdf494c6538bb78559e56"></a>
<a class="el" href="namespaceocilib.html#a01daa07e307e429b66fb80f442362237">ostring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#abae63e20c73fdf494c6538bb78559e56">GetName</a> () const </td></tr>
<tr class="memdesc:abae63e20c73fdf494c6538bb78559e56"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the name of the given registered subscription. <br /></td></tr>
<tr class="separator:abae63e20c73fdf494c6538bb78559e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83d352299128fa542985fed08afa645d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83d352299128fa542985fed08afa645d"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#a83d352299128fa542985fed08afa645d">GetTimeout</a> () const </td></tr>
<tr class="memdesc:a83d352299128fa542985fed08afa645d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the timeout of the given registered subscription. <br /></td></tr>
<tr class="separator:a83d352299128fa542985fed08afa645d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae55df645e1a7ae1df185e3da057a1053"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae55df645e1a7ae1df185e3da057a1053"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#ae55df645e1a7ae1df185e3da057a1053">GetPort</a> () const </td></tr>
<tr class="memdesc:ae55df645e1a7ae1df185e3da057a1053"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the port used by the notification. <br /></td></tr>
<tr class="separator:ae55df645e1a7ae1df185e3da057a1053"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab37547d82959a93300707f8c40a57e2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classocilib_1_1_connection.html">Connection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classocilib_1_1_subscription.html#ab37547d82959a93300707f8c40a57e2d">GetConnection</a> () const </td></tr>
<tr class="memdesc:ab37547d82959a93300707f8c40a57e2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the connection associated with a subscription handle.  <a href="#ab37547d82959a93300707f8c40a57e2d">More...</a><br /></td></tr>
<tr class="separator:ab37547d82959a93300707f8c40a57e2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> to database or objects changes. </p>
<p>This class wraps the OCILIB object handle OCI_Subscription and its related methods</p>
<dl class="section warning"><dt>Warning</dt><dd><a class="el" href="classocilib_1_1_environment.html#a87b82fd52f230a521416ee49e2ace788a64dea47e6ace702d102d856a6401ecaa">Environment::Events</a> flag must be passed to <a class="el" href="classocilib_1_1_environment.html#a83613d62908717ddf7d0ac797d63120a" title="Initialize the OCILIB environment. ">Environment::Initialize()</a> to be able to use subscriptions </dd></dl>

<p>Definition at line <a class="el" href="ocilib_8hpp_source.html#l06713">6713</a> of file <a class="el" href="ocilib_8hpp_source.html">ocilib.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a9eeec89f2f59ad49a7db7501a41b96f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classocilib_1_1_flags.html">Flags</a>&lt;<a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082">ChangeTypesValues</a>&gt; <a class="el" href="classocilib_1_1_subscription.html#a9eeec89f2f59ad49a7db7501a41b96f9">ocilib::Subscription::ChangeTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> changes flags. </p>
<p>Possible values are <a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082" title="Subscription changes flags values. ">Subscription::ChangeTypesValues</a> </p>

<p>Definition at line <a class="el" href="ocilib_8hpp_source.html#l06752">6752</a> of file <a class="el" href="ocilib_8hpp_source.html">ocilib.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="aa2667ca0384af70f0c17d6bdc28ed082"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classocilib_1_1_subscription.html#aa2667ca0384af70f0c17d6bdc28ed082">ocilib::Subscription::ChangeTypesValues</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> changes flags values. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="aa2667ca0384af70f0c17d6bdc28ed082aecdfb6fffabfbdf15eae6d80ad04a0d2"></a>ObjectChanges&#160;</td><td class="fielddoc">
<p>Request for changes at objects (e.g. tables) level (DDL / DML) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="aa2667ca0384af70f0c17d6bdc28ed082a0c4a4ff11ff9e8dd7a06167e42c73ef8"></a>RowChanges&#160;</td><td class="fielddoc">
<p>Request for changes at rows level (DML) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="aa2667ca0384af70f0c17d6bdc28ed082a7e4d7d4f031f8fc53b539b6c63ef8a2d"></a>DatabaseChanges&#160;</td><td class="fielddoc">
<p>Request for changes at database level (startup, shutdown) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="aa2667ca0384af70f0c17d6bdc28ed082a5a55eb308dfae1200c7d22df8957aa3a"></a>AllChanges&#160;</td><td class="fielddoc">
<p>Request for all changes </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="ocilib_8hpp_source.html#l06733">6733</a> of file <a class="el" href="ocilib_8hpp_source.html">ocilib.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a44f8bca8a9479fe38dde565890850389"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ocilib::Subscription::Register </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classocilib_1_1_connection.html">Connection</a> &amp;&#160;</td>
          <td class="paramname"><em>connection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceocilib.html#a01daa07e307e429b66fb80f442362237">ostring</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classocilib_1_1_subscription.html#a9eeec89f2f59ad49a7db7501a41b96f9">ChangeTypes</a>&#160;</td>
          <td class="paramname"><em>changeTypes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classocilib_1_1_subscription.html#aa557f2ff8b04b1c465f4fb2c901fe8e7">NotifyHandlerProc</a>&#160;</td>
          <td class="paramname"><em>handler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register a notification against the given database. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">connection</td><td>- <a class="el" href="classocilib_1_1_connection.html" title="A connection or session with a specific database. ">Connection</a> handle </td></tr>
    <tr><td class="paramname">name</td><td>- Notification name </td></tr>
    <tr><td class="paramname">changeTypes</td><td>- <a class="el" href="classocilib_1_1_subscription.html" title="Subscription to database or objects changes. ">Subscription</a> type </td></tr>
    <tr><td class="paramname">handler</td><td>- User handler callback </td></tr>
    <tr><td class="paramname">port</td><td>- Port to use for notifications </td></tr>
    <tr><td class="paramname">timeout</td><td>- notification timeout</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Requires Oracle Client 10gR2 or above </dd></dl>

<p>Definition at line <a class="el" href="ocilib__impl_8hpp_source.html#l06035">6035</a> of file <a class="el" href="ocilib__impl_8hpp_source.html">ocilib_impl.hpp</a>.</p>

<p>References <a class="el" href="namespaceocilib.html#ada9a964035fd103d4ec07500f404a658">ocilib::Check()</a>, <a class="el" href="group___ocilib_c_api_subscriptions.html#ga78afd31aa61d0ce04c535cd669e58e07">OCI_SubscriptionRegister()</a>, and <a class="el" href="group___ocilib_c_api_subscriptions.html#gaee7e14ee05f2368b4843aaf61d284341">OCI_SubscriptionUnregister()</a>.</p>

</div>
</div>
<a class="anchor" id="a1f6e12327beee0faef2d15e0244d090a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ocilib::Subscription::Unregister </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unregister a previously registered notification. </p>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="classocilib_1_1_environment.html#a8c21dd437c424a1f6cb63ed66441c979" title="Clean up all resources allocated by the environment. ">Environment::Cleanup()</a> will automatically unregister any non unregistered subscriptions</dd>
<dd>
If the database connection passed to <a class="el" href="classocilib_1_1_subscription.html#a44f8bca8a9479fe38dde565890850389" title="Register a notification against the given database. ">Register()</a> has been closed by the time that the application calls <a class="el" href="classocilib_1_1_subscription.html#a1f6e12327beee0faef2d15e0244d090a" title="Unregister a previously registered notification. ">Unregister()</a>, the library internally reconnects to the given database, performs the deregistration and then disconnects </dd></dl>

<p>Definition at line <a class="el" href="ocilib__impl_8hpp_source.html#l06044">6044</a> of file <a class="el" href="ocilib__impl_8hpp_source.html">ocilib_impl.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab37547d82959a93300707f8c40a57e2d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classocilib_1_1_connection.html">Connection</a> ocilib::Subscription::GetConnection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the connection associated with a subscription handle. </p>
<dl class="section note"><dt>Note</dt><dd>It may return a null connection object if the connection used at <a class="el" href="classocilib_1_1_subscription.html#a44f8bca8a9479fe38dde565890850389" title="Register a notification against the given database. ">Register()</a> time has been closed </dd></dl>

<p>Definition at line <a class="el" href="ocilib__impl_8hpp_source.html#l06075">6075</a> of file <a class="el" href="ocilib__impl_8hpp_source.html">ocilib_impl.hpp</a>.</p>

<p>References <a class="el" href="namespaceocilib.html#ada9a964035fd103d4ec07500f404a658">ocilib::Check()</a>, and <a class="el" href="group___ocilib_c_api_subscriptions.html#ga748e045e9c97b31e83cd52926ba62509">OCI_SubscriptionGetConnection()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceocilib.html">ocilib</a></li><li class="navelem"><a class="el" href="classocilib_1_1_subscription.html">Subscription</a></li>
    <li class="footer">Generated on Mon Mar 21 2016 22:26:39 for OCILIB (C and C++ Driver for Oracle) by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
